<%@page import="beans.Perfil"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>

<%@ taglib uri="http://displaytag.sf.net/el" prefix="tb"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title></title>

</head>
<body>

	<script>
		document.getElementById("tbPerfil").onclick = function(e) {
			if (!e)
				e = window.event;
			if (!e.target)
				e.target = e.srcElement;
			var TR = e.target;
			while (TR.nodeType == 1 && TR.tagName.toUpperCase() != "TR")
				TR = TR.parentNode;
			var celdas = TR.getElementsByTagName("TD");
			if (celdas.length != 0)
			document.getElementById('cperfiloculto').value =celdas[0].innerHTML; 

		}
	</script>
	<input type="hidden"  id="cperfiloculto">
	<tb:table id="tbPerfil" name='<%=session.getAttribute("listaPerfil") %>'>
		<tb:column property="codigo" title="Codigo" />
		<tb:column property="descripcion" title="Descripcion" />
		<tb:column title="Acciones">
			<input type="button" id="btnEliminarPerfil" onclick="eliminarPerfil();">
		</tb:column>
	</tb:table>
</body>
</html>